package com.zkthink.ceres.promotion.service;

import com.zkthink.base.R;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.promotion.entity.MemberCoupon;
import com.zkthink.ceres.promotion.vo.web.CouponPageVO;

/**
 * <p>
 * 业务接口
 * 用户领券表
 * </p>
 *
 * @author JustArgo
 * @date 2020-06-26
 */
public interface MemberCouponService extends SuperService<MemberCoupon> {

    /**
     * 用户领券接口
     * @param mid
     * @param couponId
     * @return
     */
    R<Boolean> receiveCoupon(Long mid, Long couponId);

    /** 查询用户领取的优惠券
     * @author 善泉 2020/6/28 17:36
     * @return
     */
	R<CouponPageVO> findCouponList(Long mid, Integer pageIndex, Integer pageSize);

	/** 将优惠券标记为已使用
	 * @author 善泉 2020/6/28 20:40
	 * @return
	 */
	void useCoupon(Long mid, Long couponId);
}
